package com.party.core.model.dbAnalyze;

/**
 * Created by wei.li
 *
 * @date 2017/8/3 0003
 * @time 9:56
 */
public class DbAnalyze {

    //表名称
    private String tableName;

    //行数
    private Integer rows;


    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DbAnalyze dbAnalyze = (DbAnalyze) o;

        if (tableName != null ? !tableName.equals(dbAnalyze.tableName) : dbAnalyze.tableName != null) return false;
        return rows != null ? rows.equals(dbAnalyze.rows) : dbAnalyze.rows == null;

    }

    @Override
    public int hashCode() {
        int result = tableName != null ? tableName.hashCode() : 0;
        result = 31 * result + (rows != null ? rows.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "DbAnalyze{" +
                "tableName='" + tableName + '\'' +
                ", rows=" + rows +
                '}';
    }
}
